import { defHttp } from "@/utils/http";

// ERP 科室库存成本核算 API
export const invtDeptCostApi = {
	// 获取科室库存成本核算列表
	invtDeptCostList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept-cost/page`, params });
	},
	// 新增科室库存成本核算
	invtDeptCostCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept-cost/create`, data });
	},

	// 修改科室库存成本核算
	invtDeptCostUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept-cost/update`, data });
	},

	// 删除科室库存成本核算
	invtDeptCostDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept-cost/delete?id=` + id });
	}
};
